package com.lz.ovuola.repository.mysql.impl;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.lz.ovuola.entity.PhysiologicalDataDo;
import com.lz.ovuola.repository.mysql.MyDynamicRepository;

/**
 * 官方api：http://docs.spring.io/spring-data/jpa/docs/1.11.1.RELEASE/reference/
 * html/
 * 
 * @author fz
 *
 */
@Repository("physiologicalDataRepository")
public interface PhysiologicalDataRepository extends
		MyDynamicRepository<PhysiologicalDataDo, Integer> {

	List<PhysiologicalDataDo> findByUserId(Integer userId);

	List<PhysiologicalDataDo> findByDetectionTimeBetweenAndUserId(
			Date startTime, Date endTime, Integer userId);
}
